<?php
class EmailSet extends CActiveRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @return Organizations the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'email_set';
	}
	
	public function getSMTPSetting() {
		$sql = "SELECT name, value FROM ".$this->tableName();
		$resultset = $this->findAllBySql($sql);
		
		return $resultset;
	}
}
?>